toNotEmptyList
Deprecated
Use the Array.toNotEmptyListOrThrow function instead.
Replace with
import kotools.types.collections.toNotEmptyListOrThrow
Content copied to clipboard
this.toNotEmptyListOrThrow()
Content copied to clipboard
Returns a NotEmptyList containing all the elements of this array, or throws an IllegalArgumentException if this array is empty.
Deprecated
Use the Collection.toNotEmptyListOrThrow function instead.
Replace with
import kotools.types.collections.toNotEmptyListOrThrow
Content copied to clipboard
this.toNotEmptyListOrThrow()
Content copied to clipboard
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.